<%@ page language="java" import="java.util.*" pageEncoding="utf-8" errorPage="errorpage.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'right.jsp' starting page</title>
<link rel="stylesheet" href="image/CSS.CSS" type="text/css">
<script language=javascript>
function check()
{               
  if((document.test.name2.value==null)||(document.test.name2.value.length==0))
  {   
    alert("初始站为空，请重新输入");
    document.test.name2.focus();
    return false;
  }
  if((document.test.name3.value==null)||(document.test.name3.value.length==0))
  {   
    alert("目的站为空，请重新输入");
    document.test.name3.focus();
    return false;
  }
  return true;
}
</script>
  </head>

  <BODY BGCOLOR=#ffccCC leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" height="330">
  <tr> 
    <td colspan="3" height="90"><img src="image/index_top1.gif" width="778" height="90"></td>
  </tr>
  <tr> 
    <td height="160" width="518" background="image/index_top2.gif">
      <table border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td> 
            <div align="center"><font color="#000000"> <b><font size="7"><font color="#000000">火车订票系统</font>

 
              </font></b></font></div>
          </td>
        </tr>
        
      </table>
    </td>
    <td height="160" width="210" background="image/01.gif"><img src="image/index_pic.gif" width="220" height="160"></td>
    <td height="160" width="40"><img src="image/index_top3.gif" width="40" height="160"></td>
  </tr>
  <tr> 
    <td colspan="3" height="80"><img src="image/index_top4.gif" width="778" height="80"></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  <tr> 
    <td valign="top"> 
      <table width="280" border="0" cellspacing="0" cellpadding="0" background="image/index_lmbg.gif">
        <tr>
		<td align="center">
		</td>
		</tr>
		<tr>
		<td>
	<table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b><a href="hello.jsp">首页</a></b></div>
                </td>
              </tr>
            </table>
		</td>
		</tr>

		<tr> 
          <td height="30">
<table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="userlogin.jsp">
<!--Button1-->用户登录</a></b></div>
                </td>
              </tr>
</table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="adminlogin.jsp">
管理员登录</a></b></div>
                </td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="trainquery.jsp">
按车次查询</a></b></div>
                </td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="addressquery.jsp">
按地点查询</a></b></div>
                </td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>

<a href="stationquery.jsp">
按站点查询</a></b></div>
                </td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>

<a href="userregister.jsp">
<!--Button6-->用户注册</a> </b></div>
                </td>
              </tr>
            </table>   
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> <div align="center"><b> 
<a href="dizhi.jsp"> 
联系我们</a> </b></div></td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              
            </table>
			</td>
          <td width="30" height="30">&nbsp;</td>
        </tr>
        <tr> 
          <td colspan="2"> <img src="image/index_bottom.gif" width="280" height="100"></td>
        </tr>
      </table>
      <p>&nbsp;</p>
    </td>
<td width="468" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>
            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
              
              <tr> 
                <td bgcolor="#000000"><img src="image/Spacer.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td> 
                  <div align="right">

				  </div>
                </td>
              </tr>
                           <tr> 
                <td>
<center>
<h3>按地点查询</h3>
<form action="addressqueryresult.jsp" method=post name=test onsubmit="return check()">
<input type="hidden" name="action" value="addressquery">
初始站：<input type=text name=name2><br>
目的站：<input type=text name=name3><br>
<br>
<input type=submit value=查询>
<input type=reset value=重置>
</form>
</center>
</td>
              </tr>
            </table> 
            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" class="englishfont" height="1">
              <tr> 
                <td bgcolor="#000000"> </td>
              </tr>
            </table>
<br>
            <table width="96%" border="0" cellspacing="0" cellpadding="4" align="center">
              <tr> 
                <td> 
                  <div align="center"> 
火车在线订票
 ！
@2020<br>
                      车站地址:湖南省长沙市芙蓉区科教路<br>
                      电话:0731-8888888<br>
                      电子邮件:train@gmail.com
                </td>
              </tr>
            </table>      
		  </td>
        </tr>
      </table>

    </td>
    <td width="30">&nbsp;</td>
  </tr>
</table>
</BODY>
</html>
